]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/eacdata.c
flvenc: check packet duration in speex using timestamps
[ffmpeg] / libavformat / eacdata.c
index 56f4e271dd52ac67d08cfaed77bceaef609f0862..7d6da93efcc9ca8fbbc281bbd991ca54e7438b72 100644 (file)
@@ -64,7 +64,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap)
     sample_rate = avio_rb16(pb);
     avio_skip(pb, 12);
 
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return AVERROR(ENOMEM);
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;