| Index: media/ffmpeg/ffmpeg_common.cc
|
| diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
|
| index 344e2656b9d4c4b004947aaf25df2e3ca01fb7e4..916be53a2562c90309b82f27e693d72bc3c2fc2a 100644
|
| --- a/media/ffmpeg/ffmpeg_common.cc
|
| +++ b/media/ffmpeg/ffmpeg_common.cc
|
| @@ -297,12 +297,6 @@ static void AVCodecContextToAudioDecoderConfig(
|
| codec_context->seek_preroll * 1000000.0 / codec_context->sample_rate);
|
| }
|
|
|
| - base::TimeDelta codec_delay;
|
| - if (codec_context->delay > 0) {
|
| - codec_delay = base::TimeDelta::FromMicroseconds(
|
| - codec_context->delay * 1000000.0 / codec_context->sample_rate);
|
| - }
|
| -
|
| config->Initialize(codec,
|
| sample_format,
|
| channel_layout,
|
| @@ -312,7 +306,7 @@ static void AVCodecContextToAudioDecoderConfig(
|
| is_encrypted,
|
| record_stats,
|
| seek_preroll,
|
| - codec_delay);
|
| + codec_context->delay);
|
| if (codec != kCodecOpus) {
|
| DCHECK_EQ(av_get_bytes_per_sample(codec_context->sample_fmt) * 8,
|
| config->bits_per_channel());
|
|
|