Commit b2597042 authored by Jan Gerber's avatar Jan Gerber Committed by Michael Niedermayer

avcodec/libopusdec: Set codec->delay to pre_skip not fixed value

Reviewed-by: 's avatarNicolas George <george@nsup.org>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 05c3c568
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment