projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f01a189
)
fixing -sameq with mpeg2
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 9 Nov 2002 13:57:54 +0000
(13:57 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 9 Nov 2002 13:57:54 +0000
(13:57 +0000)
Originally committed as revision 1179 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpeg12.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpeg12.c
b/libavcodec/mpeg12.c
index
f0dfd19
..
847a22b
100644
(file)
--- 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];