Export qscale so that postprocessing works.
authorAlexander Strange <astrange@ithinksw.com>
Fri, 27 Jun 2008 18:50:06 +0000 (18:50 +0000)
committerAlexander Strange <astrange@ithinksw.com>
Fri, 27 Jun 2008 18:50:06 +0000 (18:50 +0000)
Originally committed as revision 14008 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mdec.c

index 63bfd4b..0157204 100644 (file)
@@ -203,8 +203,8 @@ static int decode_frame(AVCodecContext *avctx,
         }
     }
 
         }
     }
 
-//    p->quality= (32 + a->inv_qscale/2)/a->inv_qscale;
-//    memset(p->qscale_table, p->quality, p->qstride*a->mb_height);
+    p->quality= a->qscale * FF_QP2LAMBDA;
+    memset(p->qscale_table, a->qscale, p->qstride*a->mb_height);
 
     *picture= *(AVFrame*)&a->picture;
     *data_size = sizeof(AVPicture);
 
     *picture= *(AVFrame*)&a->picture;
     *data_size = sizeof(AVPicture);