]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rl2.c
mpegts: use avcodec_get_type() to set codec_type
[ffmpeg] / libavformat / rl2.c
index ab33aabccc21f494a77c165941514852cacc6e93..a6544c3a60dfb5476aec29c0d9d796dcd7089254 100644 (file)
@@ -32,6 +32,8 @@
  * optional background_frame
  */
 
+#include <stdint.h>
+
 #include "libavutil/intreadwrite.h"
 #include "libavutil/mathematics.h"
 #include "avformat.h"
@@ -130,7 +132,7 @@ static av_cold int rl2_read_header(AVFormatContext *s)
         st->codec->extradata_size += back_size;
 
     st->codec->extradata = av_mallocz(st->codec->extradata_size +
-                                          FF_INPUT_BUFFER_PADDING_SIZE);
+                                          AV_INPUT_BUFFER_PADDING_SIZE);
     if(!st->codec->extradata)
         return AVERROR(ENOMEM);