diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-11-09 13:57:54 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-11-09 13:57:54 +0000 |
commit | c2d418f1e60e8cee74b9479d0fd3a395325858f1 (patch) | |
tree | bf01b8a272ddded2b21b5954607ead8fda0d0ac6 /libavcodec/mpeg12.c | |
parent | f01a18945567967aa1022d1a17ba0d88dad91a2a (diff) | |
download | ffmpeg-c2d418f1e60e8cee74b9479d0fd3a395325858f1.tar.gz |
fixing -sameq with mpeg2
Originally committed as revision 1179 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index f0dfd1912f..847a22b0d7 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -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]; |