]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/r3d.c
lavf: replace av_new_stream->avformat_new_stream part II.
[ffmpeg] / libavformat / r3d.c
index 8e632c99f1779360d840f7faa8e6d89327471d86..11d450544ae60929639d0b1f5c7eac195e4f5fc3 100644 (file)
@@ -89,7 +89,7 @@ static int r3d_read_red1(AVFormatContext *s)
     tmp = avio_r8(s->pb); // audio channels
     av_dlog(s, "audio channels %d\n", tmp);
     if (tmp > 0) {
-        AVStream *ast = av_new_stream(s, 1);
+        AVStream *ast = avformat_new_stream(s, NULL);
         if (!ast)
             return AVERROR(ENOMEM);
         ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;