]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libopusdec.c
avcodec/hevc_ps: check that VPS referenced from SPS exists
[ffmpeg] / libavcodec / libopusdec.c
index 2409de23a0f079503d753fbcd0c72b4eee355c18..8436302a9bd3df5e82cfb2fae46e3c295dfa8ac8 100644 (file)
@@ -108,8 +108,8 @@ static av_cold int libopus_decode_init(AVCodecContext *avc)
     }
 #endif
 
-    avc->internal->skip_samples = opus->pre_skip;
-    avc->delay = 3840;  /* Decoder delay (in samples) at 48kHz */
+    /* Decoder delay (in samples) at 48kHz */
+    avc->delay = avc->internal->skip_samples = opus->pre_skip;
 
     return 0;
 }