mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
05c3c568dc
commit
b2597042e5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue