You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
committed by
Michael Niedermayer
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user