Commit 1337c6cf authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg1enc: dont use size extension.

the spec doesnt mention this extension for mpeg1
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 038eb59b
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment