]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/assdec.c
wavdec: add ignore length option to ignore incorrect lengthes
[ffmpeg] / libavformat / assdec.c
index e2cebf8875ebb474a1d8f78ddb2bde81a43b57db..78cb6d93e111ffefd4b205e991936f171636871a 100644 (file)
@@ -83,10 +83,10 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
     uint8_t *p, **dst[2]={0};
     int pos[2]={0};
 
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return -1;
-    av_set_pts_info(st, 64, 1, 100);
+    avpriv_set_pts_info(st, 64, 1, 100);
     st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
     st->codec->codec_id= CODEC_ID_SSA;