Commit 0d39369d authored by cehoyos's avatar cehoyos

Allow encoding frames with more than 2800 lines.

Patch by Martin Fiedler, martin fiedler gmx net 


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19927 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d7ce28b8
...@@ -327,7 +327,12 @@ static av_always_inline void put_qscale(MpegEncContext *s) ...@@ -327,7 +327,12 @@ 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) {
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 {
put_header(s, SLICE_MIN_START_CODE + s->mb_y); put_header(s, SLICE_MIN_START_CODE + s->mb_y);
}
put_qscale(s); put_qscale(s);
put_bits(&s->pb, 1, 0); /* slice extra information */ put_bits(&s->pb, 1, 0); /* slice extra information */
} }
......
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