[FFmpeg-cvslog] r19927 - trunk/libavcodec/mpeg12enc.c

cehoyos subversion
Sun Sep 20 16:08:44 CEST 2009


Author: cehoyos
Date: Sun Sep 20 16:08:44 2009
New Revision: 19927

Log:
Allow encoding frames with more than 2800 lines.

Patch by Martin Fiedler, martin fiedler gmx net

Modified:
   trunk/libavcodec/mpeg12enc.c

Modified: trunk/libavcodec/mpeg12enc.c
==============================================================================
--- trunk/libavcodec/mpeg12enc.c	Sat Sep 19 13:42:41 2009	(r19926)
+++ trunk/libavcodec/mpeg12enc.c	Sun Sep 20 16:08:44 2009	(r19927)
@@ -327,7 +327,12 @@ static av_always_inline void put_qscale(
 }
 
 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_qscale(s);
     put_bits(&s->pb, 1, 0); /* slice extra information */
 }



More information about the ffmpeg-cvslog mailing list