[FFmpeg-cvslog] lavf: Exporting opus pre_skip in AVCodecContext

Vignesh Venkatasubramanian git at videolan.org
Mon Nov 25 15:31:36 CET 2013


ffmpeg | branch: master | Vignesh Venkatasubramanian <vigneshv at google.com> | Thu Nov 21 12:44:11 2013 -0800| [7f11c530dc3da665b6d710999984ccbc67e75947] | committer: Michael Niedermayer

lavf: Exporting opus pre_skip in AVCodecContext

Opus Pre Skip is exported in AVCodecContext->delay similar to how
it is done for matroska. Doing the same for ogg too.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv at google.com>
Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7f11c530dc3da665b6d710999984ccbc67e75947
---

 libavformat/oggparseopus.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/oggparseopus.c b/libavformat/oggparseopus.c
index 78aa333..94267b2 100644
--- a/libavformat/oggparseopus.c
+++ b/libavformat/oggparseopus.c
@@ -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);*/



More information about the ffmpeg-cvslog mailing list