[FFmpeg-cvslog] dv-demux: dont mess with codec values

Michael Niedermayer git at videolan.org
Fri Jun 1 00:14:22 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 31 23:50:08 2012 +0200| [3c276ac0f8936745543d14674842647c502bdd2e] | committer: Michael Niedermayer

dv-demux: dont mess with codec values

Fixes part of Ticket1369

Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3c276ac0f8936745543d14674842647c502bdd2e
---

 libavformat/dv.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/dv.c b/libavformat/dv.c
index 2ce928f..75b42b0 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -273,9 +273,6 @@ static int dv_extract_video_info(DVDemuxContext *c, uint8_t* frame)
         avpriv_set_pts_info(c->vst, 64, c->sys->time_base.num,
                         c->sys->time_base.den);
         avctx->time_base= c->sys->time_base;
-        if (!avctx->width)
-            avcodec_set_dimensions(avctx, c->sys->width, c->sys->height);
-        avctx->pix_fmt = c->sys->pix_fmt;
 
         /* finding out SAR is a little bit messy */
         vsc_pack = dv_extract_pack(frame, dv_video_control);



More information about the ffmpeg-cvslog mailing list