diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-18 19:10:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-21 22:19:22 +0100 |
commit | cc2580e6e98c6a9687aae6d62341d188fa31efd5 (patch) | |
tree | c21accc432762ee4d8d4d5a6d997f6408ceb80f3 | |
parent | 4b0f8aed13efc53b62b5fb2eabdc55cd4c0967ae (diff) | |
download | ffmpeg-cc2580e6e98c6a9687aae6d62341d188fa31efd5.tar.gz |
svq1dec: call avcodec_set_dimensions() after dimensions changed.
Fixes NGS00148
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4931c8f0f10bf8dedcf626104a6b85bfefadc6f2)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 661ee45f8881bb551eb403472e60c38a7c2818aa)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/svq1dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index 7fef10bb99..7c4e5c960c 100644 --- a/libavcodec/svq1dec.c +++ b/libavcodec/svq1dec.c @@ -676,6 +676,7 @@ static int svq1_decode_frame(AVCodecContext *avctx, #endif return result; } + avcodec_set_dimensions(avctx, s->width, s->height); //FIXME this avoids some confusion for "B frames" without 2 references //this should be removed after libavcodec can handle more flexible picture types & ordering |