X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Flibnut.c;h=7628abdfb8c571f9366c9ff2fc88ea1fc18c2725;hb=4354788a893d3633cb9f94932b4c075377a4b324;hp=4ed9bb9a17a98fdea2bfc0f77efe3ef52db3ac44;hpb=96c93b8ceb6c95335ed8fc743956e46dd1ccfae5;p=ffmpeg diff --git a/libavformat/libnut.c b/libavformat/libnut.c index 4ed9bb9a17a..7628abdfb8c 100644 --- a/libavformat/libnut.c +++ b/libavformat/libnut.c @@ -213,7 +213,7 @@ static int nut_read_header(AVFormatContext * avf, AVFormatParameters * ap) { priv->s = s; for (i = 0; s[i].type != -1 && i < 2; i++) { - AVStream * st = av_new_stream(avf, i); + AVStream * st = avformat_new_stream(avf, NULL); int j; for (j = 0; j < s[i].fourcc_len && j < 8; j++) st->codec->codec_tag |= s[i].fourcc[j]<<(j*8);