]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/loasdec.c
mxfdec: Make sure x < index_table->nb_ptses
[ffmpeg] / libavformat / loasdec.c
index dd74b304fb38e0a58dbb18fea51bf1e2f856da4f..e48c21905a5714a4f447a4254c2a5eb5deedc5e3 100644 (file)
@@ -22,6 +22,7 @@
 #include "libavutil/intreadwrite.h"
 #include "libavutil/internal.h"
 #include "avformat.h"
+#include "internal.h"
 #include "rawdec.h"
 
 static int loas_probe(AVProbeData *p)
@@ -63,7 +64,7 @@ static int loas_read_header(AVFormatContext *s,
 {
     AVStream *st;
 
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return AVERROR(ENOMEM);
 
@@ -72,7 +73,7 @@ static int loas_read_header(AVFormatContext *s,
     st->need_parsing = AVSTREAM_PARSE_FULL;
 
     //LCM of all possible AAC sample rates
-    av_set_pts_info(st, 64, 1, 28224000);
+    avpriv_set_pts_info(st, 64, 1, 28224000);
 
     return 0;
 }