set pix_fmt
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Aug 2005 21:34:24 +0000 (21:34 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Aug 2005 21:34:24 +0000 (21:34 +0000)
Originally committed as revision 4518 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mdec.c

index d6e5d04..afe122c 100644 (file)
@@ -239,6 +239,7 @@ static int decode_init(AVCodecContext *avctx){
 */
     p->qstride= a->mb_width;
     p->qscale_table= av_mallocz( p->qstride * a->mb_height);
+    avctx->pix_fmt= PIX_FMT_YUV420P;
 
     return 0;
 }