mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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:
parent
038eb59b3a
commit
1337c6cf15
@ -331,7 +331,7 @@ static av_always_inline void put_qscale(MpegEncContext *s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ff_mpeg1_encode_slice_header(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_header(s, SLICE_MIN_START_CODE + (s->mb_y & 127));
|
||||||
put_bits(&s->pb, 3, s->mb_y >> 7); /* slice_vertical_position_extension */
|
put_bits(&s->pb, 3, s->mb_y >> 7); /* slice_vertical_position_extension */
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user