diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-09-02 08:30:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-09-02 08:30:26 +0000 |
commit | 4325ffd0a260476dec22d8b246e9473d7d0f0727 (patch) | |
tree | 51046cd33e08ecf106ab9e0fa879a3a8d36f88db /libavformat/dv.c | |
parent | beedd40a8cde91976dce32c6f7212ec53a94de08 (diff) | |
download | ffmpeg-4325ffd0a260476dec22d8b246e9473d7d0f0727.tar.gz |
lowres support
Originally committed as revision 4545 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r-- | libavformat/dv.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 */ |