]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/oggparseopus.c
Merge commit 'f058f384a0d76bfd125f4738dceab7c890186432'
[ffmpeg] / libavformat / oggparseopus.c
index 78aa33318718cc242781a9908d9f96c7c08fd99d..94267b26f314b25b0eb120e18efff83b779ba668 100644 (file)
@@ -55,6 +55,7 @@ static int opus_header(AVFormatContext *avf, int idx)
         st->codec->codec_id   = AV_CODEC_ID_OPUS;
         st->codec->channels   = AV_RL8 (packet + 9);
         priv->pre_skip        = AV_RL16(packet + 10);
+        st->codec->delay      = priv->pre_skip;
         /*orig_sample_rate    = AV_RL32(packet + 12);*/
         /*gain                = AV_RL16(packet + 16);*/
         /*channel_map         = AV_RL8 (packet + 18);*/