aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-31 23:50:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-07 00:55:24 +0200
commitf1150e0c7d5ad7c5139cfb0d0c16fcfd8cd6649d (patch)
tree306d58c1a48e2690748a7d328a4613865c5a75be
parentf46b57657b791b4536633a17fb139cccf5c57b0a (diff)
downloadffmpeg-f1150e0c7d5ad7c5139cfb0d0c16fcfd8cd6649d.tar.gz
dv-demux: dont mess with codec values
Fixes part of Ticket1369 Found-by: ami_stuff Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 3c276ac0f8936745543d14674842647c502bdd2e) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/dv.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 2ce928fa26..75b42b01ab 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);