# HG changeset patch
# User jai_menon
# Date 1260637805 0
# Node ID abf5c20eebf4dfc57e2f5158f2cb2b5ea966347e
# Parent  8ee37f5571dc078fbe145dd21dee5833ba38170c
SVQ3 : Set avctx->pix_fmt correctly during decoder initialisation.
Fixes issue 1591.

diff -r 8ee37f5571dc -r abf5c20eebf4 svq3.c
--- 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;