X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fthp.c;h=e2aba3bc324aaaa93628b40b02a579b66781d0f4;hb=b51eaf3b8ce85419038d1f8be9146a45febcddb4;hp=17054df78c8a30314768836714fef222f8ebf612;hpb=23c1db9b83b5928a312b8d7cd753d04d49c252b6;p=ffmpeg diff --git a/libavformat/thp.c b/libavformat/thp.c index 17054df78c8..e2aba3bc324 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -94,7 +94,7 @@ static int thp_read_header(AVFormatContext *s, break; /* Video component. */ - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); @@ -117,7 +117,7 @@ static int thp_read_header(AVFormatContext *s, break; /* Audio component. */ - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM);