aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorJai Menon <jmenon86@gmail.com>2009-12-12 17:10:05 +0000
committerJai Menon <jmenon86@gmail.com>2009-12-12 17:10:05 +0000
commit94621d329f35267607560eee6a372bfa7cfbb256 (patch)
treef6897df3f5a6141ce8e3700e1e88a3592f9b7099 /libavcodec/svq3.c
parent54c2421647d8a2fe332f65ca581dae81c8e91488 (diff)
downloadandroid_external_ffmpeg-94621d329f35267607560eee6a372bfa7cfbb256.tar.gz
android_external_ffmpeg-94621d329f35267607560eee6a372bfa7cfbb256.tar.bz2
android_external_ffmpeg-94621d329f35267607560eee6a372bfa7cfbb256.zip
SVQ3 : Set avctx->pix_fmt correctly during decoder initialisation.
Fixes issue 1591. Originally committed as revision 20810 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 962b1df8b7..787cfe0cb1 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -796,6 +796,7 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
s->flags2 = avctx->flags2;
s->unrestricted_mv = 1;
h->is_complex=1;
+ avctx->pix_fmt = avctx->codec->pix_fmts[0];
if (!s->context_initialized) {
s->width = avctx->width;