提交 c2d418f1 编写于 作者: M Michael Niedermayer

fixing -sameq with mpeg2

Originally committed as revision 1179 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 f01a1894
......@@ -1677,7 +1677,6 @@ eos: //end of slice
MPV_frame_end(s);
/* XXX: incorrect reported qscale for mpeg2 */
if (s->pict_type == B_TYPE) {
picture = s->current_picture;
avctx->quality = s->qscale;
......@@ -1693,6 +1692,8 @@ eos: //end of slice
s->last_qscale = s->qscale;
s->picture_number++;
}
if(s->mpeg2)
avctx->quality>>=1;
if (picture) {
pict->data[0] = picture[0];
pict->data[1] = picture[1];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册