changeset 10677:abf5c20eebf4 libavcodec

SVQ3 : Set avctx->pix_fmt correctly during decoder initialisation. Fixes issue 1591.
author jai_menon
date Sat, 12 Dec 2009 17:10:05 +0000
parents 8ee37f5571dc
children fe3cdc16514b
files svq3.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/svq3.c	Sat Dec 12 13:58:07 2009 +0000
+++ b/svq3.c	Sat Dec 12 17:10:05 2009 +0000
@@ -796,6 +796,7 @@
     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;