changeset 845:e4e8c395d8e9 libavformat

lowres support
author michael
date Fri, 02 Sep 2005 08:30:26 +0000
parents 35e372e6a6c3
children fd1c2109505e
files dv.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dv.c	Sun Aug 21 22:31:01 2005 +0000
+++ b/dv.c	Fri Sep 02 08:30:26 2005 +0000
@@ -593,8 +593,10 @@
 	
         av_set_pts_info(c->vst, 64, sys->frame_rate_base, sys->frame_rate);
         avctx->time_base= (AVRational){sys->frame_rate_base, sys->frame_rate};
-        avctx->width = sys->width;
-        avctx->height = sys->height;
+        if(!avctx->width){
+            avctx->width = sys->width;
+            avctx->height = sys->height;
+        }
         avctx->pix_fmt = sys->pix_fmt;
         
 	/* finding out SAR is a little bit messy */