summaryrefslogtreecommitdiff
path: root/libavcodec/libopusdec.c
diff options
context:
space:
mode:
authorJan Gerber <j@v2v.cc>2013-12-20 11:40:41 +0530
committerMichael Niedermayer <michaelni@gmx.at>2013-12-24 04:53:52 +0100
commitb2597042e5a7776d5cf0350e9cac9dcbbd7d9268 (patch)
treecede5bb1beefd1e67f7cc8ea66dfc8ba32cbe7f7 /libavcodec/libopusdec.c
parent05c3c568dccd6c42fdf6eea891d08c71fe2ee772 (diff)
avcodec/libopusdec: Set codec->delay to pre_skip not fixed value
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libopusdec.c')
-rw-r--r--libavcodec/libopusdec.c4
1 files 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;
}