]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/opus.c
avcodec/dsd: use uint8_t instead of unsigned char
[ffmpeg] / libavcodec / opus.c
index 22cda64801f252139fc4ec6c97d04ce3375d5980..f74278a7e3ad8356ba75587209cd94e0901d59b6 100644 (file)
@@ -326,7 +326,9 @@ av_cold int ff_opus_parse_extradata(AVCodecContext *avctx,
         return AVERROR_PATCHWELCOME;
     }
 
-    avctx->delay = avctx->internal->skip_samples = AV_RL16(extradata + 10);
+    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) {