summaryrefslogtreecommitdiff
path: root/libavformat/dv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r--libavformat/dv.c6
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 */