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>
This commit is contained in:
Jan Gerber 2013-12-20 11:40:41 +05:30 committed by Michael Niedermayer
parent 05c3c568dc
commit b2597042e5

View 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;
}