[FFmpeg-cvslog] mpeg1enc: dont use size extension.

Michael Niedermayer git at videolan.org
Sun May 13 11:26:21 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 13 11:15:36 2012 +0200| [1337c6cf1592204c3596c85f1e32283300961fad] | committer: Michael Niedermayer

mpeg1enc: dont use size extension.

the spec doesnt mention this extension for mpeg1

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1337c6cf1592204c3596c85f1e32283300961fad
---

 libavcodec/mpeg12enc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index ab614bb..169f155 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -331,7 +331,7 @@ static av_always_inline void put_qscale(MpegEncContext *s)
 }
 
 void ff_mpeg1_encode_slice_header(MpegEncContext *s){
-    if (s->height > 2800) {
+    if (s->codec_id == CODEC_ID_MPEG2VIDEO && s->height > 2800) {
         put_header(s, SLICE_MIN_START_CODE + (s->mb_y & 127));
         put_bits(&s->pb, 3, s->mb_y >> 7);  /* slice_vertical_position_extension */
     } else {



More information about the ffmpeg-cvslog mailing list