From b2597042e5a7776d5cf0350e9cac9dcbbd7d9268 Mon Sep 17 00:00:00 2001 From: Jan Gerber Date: Fri, 20 Dec 2013 11:40:41 +0530 Subject: [PATCH] avcodec/libopusdec: Set codec->delay to pre_skip not fixed value Reviewed-by: Nicolas George Signed-off-by: Michael Niedermayer --- libavcodec/libopusdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/libopusdec.c b/libavcodec/libopusdec.c index 2409de23a0..8436302a9b 100644 --- a/libavcodec/libopusdec.c +++ b/libavcodec/libopusdec.c @@ -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; }