Mercurial > libavcodec.hg
changeset 844:1bd52b59bcd1 libavcodec
fixing -sameq with mpeg2
author | michaelni |
---|---|
date | Sat, 09 Nov 2002 13:57:54 +0000 |
parents | 8c81f1ee9271 |
children | 32de034be20e |
files | mpeg12.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg12.c Sat Nov 09 10:38:34 2002 +0000 +++ b/mpeg12.c Sat Nov 09 13:57:54 2002 +0000 @@ -1677,7 +1677,6 @@ 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 @@ 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];