X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fipmovie.c;h=562b19a29c42ec93b5d629229aa0395360cfd9f9;hb=60fcc19bff49e0b1972eae014afc087afd94a415;hp=c5df1f662339307edf8e3c137c189a8a622166a8;hpb=78d7d8fe9170f38ee0b2ab6f731ff1a61c712db5;p=ffmpeg diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c index c5df1f66233..562b19a29c4 100644 --- a/libavformat/ipmovie.c +++ b/libavformat/ipmovie.c @@ -559,7 +559,7 @@ static int ipmovie_read_header(AVFormatContext *s, return AVERROR_INVALIDDATA; /* initialize the stream decoders */ - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); av_set_pts_info(st, 63, 1, 1000000); @@ -572,7 +572,7 @@ static int ipmovie_read_header(AVFormatContext *s, st->codec->bits_per_coded_sample = ipmovie->video_bpp; if (ipmovie->audio_type) { - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); av_set_pts_info(st, 32, 1, ipmovie->audio_sample_rate);