]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libx264.c
Merge commit 'a001ce31bc2bcf875a39b5fb22dae49120293b42'
[ffmpeg] / libavcodec / libx264.c
index 07756d02780a2a705d8c9b291ed6f2c1981df5f3..5030d65f79ef07af6335f897df4000534a486b14 100644 (file)
@@ -675,16 +675,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
 
     if (x4->slice_max_size >= 0)
         x4->params.i_slice_max_size =  x4->slice_max_size;
-    else {
-        /*
-         * Allow x264 to be instructed through AVCodecContext about the maximum
-         * size of the RTP payload. For example, this enables the production of
-         * payload suitable for the H.264 RTP packetization-mode 0 i.e. single
-         * NAL unit per RTP packet.
-         */
-        if (avctx->rtp_payload_size)
-            x4->params.i_slice_max_size = avctx->rtp_payload_size;
-    }
 
     if (x4->fastfirstpass)
         x264_param_apply_fastfirstpass(&x4->params);