]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/oggparseopus.c
lavc: export Dirac parsing API used by the ogg demuxer as public
[ffmpeg] / libavformat / oggparseopus.c
index babd0f0fa67dba2f7a59f568374c24b42c77d23e..1851ff11eed7ce307e4b9030180b86e3aef51e46 100644 (file)
@@ -57,7 +57,7 @@ static int opus_header(AVFormatContext *avf, int idx)
         st->codec->channels   = AV_RL8(packet + 9);
         priv->pre_skip        = AV_RL16(packet + 10);
 
-        extradata = av_malloc(os->psize + FF_INPUT_BUFFER_PADDING_SIZE);
+        extradata = av_malloc(os->psize + AV_INPUT_BUFFER_PADDING_SIZE);
         if (!extradata)
             return AVERROR(ENOMEM);
 
@@ -74,7 +74,7 @@ static int opus_header(AVFormatContext *avf, int idx)
     if (priv->need_comments) {
         if (os->psize < 8 || memcmp(packet, "OpusTags", 8))
             return AVERROR_INVALIDDATA;
-        ff_vorbis_comment(avf, &st->metadata, packet + 8, os->psize - 8);
+        ff_vorbis_stream_comment(avf, st, packet + 8, os->psize - 8);
         priv->need_comments--;
         return 1;
     }