]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ncdec.c
smackerdemuxer: check some values before instead of just after malloc()
[ffmpeg] / libavformat / ncdec.c
index 3430035f3ffc7444435879ae4af64200b43efcf1..cf95c631bd407dd4016405a652520f773692c35b 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "libavutil/intreadwrite.h"
 #include "avformat.h"
+#include "internal.h"
 
 #define NC_VIDEO_FLAG 0x1A5
 
@@ -54,7 +55,7 @@ static int nc_read_header(AVFormatContext *s, AVFormatParameters *ap)
     st->codec->codec_id   = CODEC_ID_MPEG4;
     st->need_parsing      = AVSTREAM_PARSE_FULL;
 
-    av_set_pts_info(st, 64, 1, 100);
+    avpriv_set_pts_info(st, 64, 1, 100);
 
     return 0;
 }