[FFmpeg-cvslog] avcodec/libopusdec: Set codec->delay to pre_skip not fixed value

Jan Gerber git at videolan.org
Tue Dec 24 05:09:42 CET 2013


ffmpeg | branch: master | Jan Gerber <j at v2v.cc> | Fri Dec 20 11:58:41 2013 +0530| [b2597042e5a7776d5cf0350e9cac9dcbbd7d9268] | committer: Michael Niedermayer

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

Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2597042e5a7776d5cf0350e9cac9dcbbd7d9268
---

 libavcodec/libopusdec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/libopusdec.c b/libavcodec/libopusdec.c
index 2409de2..8436302 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;
 }



More information about the ffmpeg-cvslog mailing list