]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/eacdata.c
udp: simplify 7a032cb97f743a651138d2da6214c79e0ce089dd
[ffmpeg] / libavformat / eacdata.c
index 01acaca35d227a20ce9b2531d20efd36129dd06d..adf48c6a19b429b92d3f2500d69f00e0ccacd626 100644 (file)
@@ -66,7 +66,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap)
     sample_rate = avio_rb16(pb);
     avio_skip(pb, (avio_r8(pb) & 0x20) ? 15 : 11);
 
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return AVERROR(ENOMEM);
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;