]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/opus.c
avcodec/mediacodecdec: re-indent after previous commit
[ffmpeg] / libavcodec / opus.c
index aa827b604c53340ca84b6ab3edb5943f5329ddba..f74278a7e3ad8356ba75587209cd94e0901d59b6 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "opus_celt.h"
 #include "opustab.h"
+#include "internal.h"
 #include "vorbis.h"
 
 static const uint16_t opus_frame_duration[32] = {
@@ -326,6 +327,8 @@ av_cold int ff_opus_parse_extradata(AVCodecContext *avctx,
     }
 
     avctx->delay = AV_RL16(extradata + 10);
+    if (avctx->internal)
+        avctx->internal->skip_samples = avctx->delay;
 
     channels = avctx->extradata ? extradata[9] : (avctx->channels == 1) ? 1 : 2;
     if (!channels) {