]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpeg.c
build: fix standalone compilation of OMA muxer
[ffmpeg] / libavformat / mpeg.c
index 52bf40faa59667a3ddf7fd4c743fd17ff1484321..f740a25f89f96cd527ba74165793624a2864a9bf 100644 (file)
@@ -532,9 +532,10 @@ static int mpegps_read_packet(AVFormatContext *s,
         goto redo;
     }
     /* no stream found: add a new stream */
-    st = av_new_stream(s, startcode);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         goto skip;
+    st->id = startcode;
     st->codec->codec_type = type;
     st->codec->codec_id = codec_id;
     if (codec_id != CODEC_ID_PCM_S16BE)
@@ -613,7 +614,6 @@ AVInputFormat ff_mpegps_demuxer = {
     .read_probe     = mpegps_probe,
     .read_header    = mpegps_read_header,
     .read_packet    = mpegps_read_packet,
-    .read_seek      = NULL, //mpegps_read_seek,
     .read_timestamp = mpegps_read_dts,
     .flags = AVFMT_SHOW_IDS|AVFMT_TS_DISCONT,
 };