From 4325ffd0a260476dec22d8b246e9473d7d0f0727 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 2 Sep 2005 08:30:26 +0000 Subject: lowres support Originally committed as revision 4545 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/dv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libavformat/dv.c') diff --git a/libavformat/dv.c b/libavformat/dv.c index 744c71746d..6d698e2dc9 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -593,8 +593,10 @@ static int dv_extract_video_info(DVDemuxContext *c, uint8_t* frame) 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 */ -- cgit v1.2.3