]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/lmlm4.c
flvenc: check packet duration in speex using timestamps
[ffmpeg] / libavformat / lmlm4.c
index 7945cb1a4c8890ca98f89b2f405c90a19e591e23..db3bf2875f7b4adce1f01575a54f60c919b2f7e6 100644 (file)
@@ -67,7 +67,7 @@ static int lmlm4_read_header(AVFormatContext *s, AVFormatParameters *ap) {
     st->need_parsing      = AVSTREAM_PARSE_HEADERS;
     av_set_pts_info(st, 64, 1001, 30000);
 
-    if (!(st = av_new_stream(s, 1)))
+    if (!(st = avformat_new_stream(s, NULL)))
         return AVERROR(ENOMEM);
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
     st->codec->codec_id   = CODEC_ID_MP2;