]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/yop.c
sbgdec: replace EOVERFLOW with ENOMEM.
[ffmpeg] / libavformat / yop.c
index 9e548f0d665d466316d6ebda4e65314d5068463c..dac49d4dd23f05b3a4574c16fcbe3b7be56d89ff 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "libavutil/intreadwrite.h"
 #include "avformat.h"
+#include "internal.h"
 
 typedef struct yop_dec_context {
     AVPacket video_packet;
@@ -56,8 +57,8 @@ static int yop_read_header(AVFormatContext *s, AVFormatParameters *ap)
 
     int frame_rate, ret;
 
-    audio_stream = av_new_stream(s, 0);
-    video_stream = av_new_stream(s, 1);
+    audio_stream = avformat_new_stream(s, NULL);
+    video_stream = avformat_new_stream(s, NULL);
 
     // Extra data that will be passed to the decoder
     video_stream->codec->extradata_size = 8;
@@ -105,7 +106,7 @@ static int yop_read_header(AVFormatContext *s, AVFormatParameters *ap)
 
     avio_seek(pb, 2048, SEEK_SET);
 
-    av_set_pts_info(video_stream, 32, 1, frame_rate);
+    avpriv_set_pts_info(video_stream, 32, 1, frame_rate);
 
     return 0;
 }