diff svq3.c @ 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 fc06fc944c6d
children 86d7ab878805
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;