]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/pva.c
avio: allow any chars in protocols
[ffmpeg] / libavformat / pva.c
index 1aad6db29ddb729fc9e2923dcd2946272eba5ed9..7e8fa8eb73800c3093f752a6e6c21a5ecc6c5539 100644 (file)
@@ -56,7 +56,7 @@ static int pva_probe(AVProbeData * pd) {
 static int pva_read_header(AVFormatContext *s, AVFormatParameters *ap) {
     AVStream *st;
 
-    if (!(st = av_new_stream(s, 0)))
+    if (!(st = avformat_new_stream(s, NULL)))
         return AVERROR(ENOMEM);
     st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
     st->codec->codec_id   = CODEC_ID_MPEG2VIDEO;
@@ -64,7 +64,7 @@ static int pva_read_header(AVFormatContext *s, AVFormatParameters *ap) {
     av_set_pts_info(st, 32, 1, 90000);
     av_add_index_entry(st, 0, 0, 0, 0, AVINDEX_KEYFRAME);
 
-    if (!(st = av_new_stream(s, 1)))
+    if (!(st = avformat_new_stream(s, NULL)))
         return AVERROR(ENOMEM);
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
     st->codec->codec_id   = CODEC_ID_MP2;