[FFmpeg-devel] [PATCH] connect AVCodecContext.rtp_payload_size to x264_params_t.i_slice_max_size

Erik Slagter erik
Tue Dec 8 18:28:10 CET 2009


> Tabs are not allowed in FFmpeg svn.

O yes I know... And still managed to not remove all of them, no matter
how careful :-(

New attempt.

Index: libavcodec/libx264.c
===================================================================
--- libavcodec/libx264.c	(revision 20760)
+++ libavcodec/libx264.c	(working copy)
@@ -278,6 +279,7 @@
     x4->params.i_threads      = avctx->thread_count;
 
     x4->params.b_interlaced   = avctx->flags & CODEC_FLAG_INTERLACED_DCT;
+    x4->params.i_slice_max_size = avctx->rtp_payload_size;
 
     if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER)
         x4->params.b_repeat_headers = 0;

-------------- next part --------------
Index: libavcodec/libx264.c
===================================================================
--- libavcodec/libx264.c	(revision 20760)
+++ libavcodec/libx264.c	(working copy)
@@ -278,6 +279,7 @@
     x4->params.i_threads      = avctx->thread_count;
 
     x4->params.b_interlaced   = avctx->flags & CODEC_FLAG_INTERLACED_DCT;
+    x4->params.i_slice_max_size = avctx->rtp_payload_size;
 
     if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER)
         x4->params.b_repeat_headers = 0;



More information about the ffmpeg-devel mailing list