X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwc3movie.c;h=9190a1a035c20206791376915a105430705c4913;hb=86931dc9300f544ac9d9c2bfbffab4372071e779;hp=8bba572f4eaf67ebd44ce31d250310297a69d166;hpb=2fd49019210a9fbe430b1b94ff7a2f98a6d0fed1;p=ffmpeg diff --git a/libavformat/wc3movie.c b/libavformat/wc3movie.c index 8bba572f4ea..9190a1a035c 100644 --- a/libavformat/wc3movie.c +++ b/libavformat/wc3movie.c @@ -163,7 +163,7 @@ static int wc3_read_header(AVFormatContext *s, } while (fourcc_tag != BRCH_TAG); /* initialize the decoder streams */ - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); av_set_pts_info(st, 33, 1, WC3_FRAME_FPS); @@ -174,7 +174,7 @@ static int wc3_read_header(AVFormatContext *s, st->codec->width = wc3->width; st->codec->height = wc3->height; - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); av_set_pts_info(st, 33, 1, WC3_FRAME_FPS);