diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-04-18 12:45:34 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-04-18 12:45:34 +0000 |
commit | 0426af31117b1bc50b3abb2b4265c38b8c02e7a5 (patch) | |
tree | 4490f5d425e3bf7ec2f2bdc607a0c8591790efd7 /libavcodec/mpeg12.c | |
parent | 22cf0455900adb1499763f12e8339987d85fe8c5 (diff) | |
download | ffmpeg-0426af31117b1bc50b3abb2b4265c38b8c02e7a5.tar.gz |
mpeg2 qscale flag
a few bugfixes for the C pp code
minor optimization
Originally committed as revision 1786 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 7250226fd3..a21808080e 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2001,8 +2001,11 @@ eos: //end of slice if (s->mb_y<<field_pic == s->mb_height && !s->first_field) { /* end of image */ - if(s->mpeg2) - s->qscale >>=1; + if(s->mpeg2){ + s->current_picture_ptr->qscale_type= FF_QSCALE_TYPE_MPEG2; + }else + s->current_picture_ptr->qscale_type= FF_QSCALE_TYPE_MPEG1; + ff_er_frame_end(s); MPV_frame_end(s); |