summaryrefslogtreecommitdiff
path: root/src/libxinevdec/image.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-08-04 03:47:09 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-08-04 03:47:09 +0000
commited3497a1e20f74c28afc2124480c60fbdbf37fab (patch)
tree6ae75337cac3aa191151001085ed21d12e11385c /src/libxinevdec/image.c
parentb0f659b58e295ab3c4b1bac9ed59e9cb3f29f308 (diff)
downloadxine-lib-ed3497a1e20f74c28afc2124480c60fbdbf37fab.tar.gz
xine-lib-ed3497a1e20f74c28afc2124480c60fbdbf37fab.tar.bz2
support for arbitrary aspect ratios
patch by Philip Jgenstedt CVS patchset: 5243 CVS date: 2003/08/04 03:47:09
Diffstat (limited to 'src/libxinevdec/image.c')
-rw-r--r--src/libxinevdec/image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libxinevdec/image.c b/src/libxinevdec/image.c
index 8595493ad..c67d09fa4 100644
--- a/src/libxinevdec/image.c
+++ b/src/libxinevdec/image.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: image.c,v 1.4 2003/05/11 22:00:09 holstsn Exp $
+ * $Id: image.c,v 1.5 2003/08/04 03:47:10 miguelfreitas Exp $
*
* a image video decoder
*/
@@ -226,7 +226,7 @@ void end_callback(png_structp png_ptr, png_infop info) {
if (this->rows_valid) {
img = this->stream->video_out->get_frame (this->stream->video_out, this->width,
- this->height, XINE_VO_ASPECT_DONT_TOUCH,
+ this->height, (double)this->width/(double)this->height,
XINE_IMGFMT_YUY2,
VO_BOTH_FIELDS);
@@ -439,6 +439,6 @@ static decoder_info_t dec_info_image = {
plugin_info_t xine_plugin_info[] = {
/* type, API, "name", version, special_info, init_function */
- { PLUGIN_VIDEO_DECODER, 14, "image", XINE_VERSION_CODE, &dec_info_image, init_class },
+ { PLUGIN_VIDEO_DECODER, 15, "image", XINE_VERSION_CODE, &dec_info_image, init_class },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};