mpeg1enc: dont use size extension.

the spec doesnt mention this extension for mpeg1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-05-13 11:15:36 +02:00
parent 038eb59b3a
commit 1337c6cf15
1 changed files with 1 additions and 1 deletions

View File

@ -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 {