X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Felectronicarts.c;h=0508a06cc4580ca05ce511843fc2fdf49dce8ba9;hb=c12e1bd1bc7f0dd0dae2937d7f8c564e887c84ff;hp=f561319a2bb125d94aa13f4bd9fd84327f127fe7;hpb=a7758884db7eb3041b73d673c1ac3897609556b9;p=ffmpeg diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index f561319a2bb..0508a06cc45 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -408,7 +408,7 @@ static int ea_read_header(AVFormatContext *s, if (ea->video_codec) { /* initialize the video decoder stream */ - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); ea->video_stream_index = st->index; @@ -437,7 +437,7 @@ static int ea_read_header(AVFormatContext *s, } /* initialize the audio decoder stream */ - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); av_set_pts_info(st, 33, 1, ea->sample_rate);