]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/vc1test.c
Replace PATCHWELCOME by relevant error codes.
[ffmpeg] / libavformat / vc1test.c
index 5742155a253114311fdce2d2a0d25e14bac3fff4..b6d9fb9e30fd2ae22879f10fa9c2dafd9cc4ef8f 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "libavutil/intreadwrite.h"
 #include "avformat.h"
+#include "internal.h"
 
 #define VC1_EXTRADATA_SIZE 4
 
@@ -54,7 +55,7 @@ static int vc1t_read_header(AVFormatContext *s,
         return -1;
 
     /* init video codec */
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return -1;
 
@@ -71,13 +72,13 @@ static int vc1t_read_header(AVFormatContext *s,
     avio_skip(pb, 8);
     fps = avio_rl32(pb);
     if(fps == 0xFFFFFFFF)
-        av_set_pts_info(st, 32, 1, 1000);
+        avpriv_set_pts_info(st, 32, 1, 1000);
     else{
         if (!fps) {
             av_log(s, AV_LOG_ERROR, "Zero FPS specified, defaulting to 1 FPS\n");
             fps = 1;
         }
-        av_set_pts_info(st, 24, 1, fps);
+        avpriv_set_pts_info(st, 24, 1, fps);
         st->duration = frames;
     }