tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 763fd288773d07260b6d97ff9b92720c53a0239b
parent 8cba26db617e077a84a1165208354b0f1c4715f3
Author: Andrew Osmond <aosmond@gmail.com>
Date:   Thu,  8 Jan 2026 18:06:09 +0000

Bug 2009205 - Supply packet pts in FFmpegAudioDecoder to suppress log warnings. r=media-playback-reviewers,alwu

On Android, it checks for a valid pts and passes it to the MediaCodec
decoder. We should supply it even if it just suppresses the warnings in
the logging.

Differential Revision: https://phabricator.services.mozilla.com/D278336

Diffstat:
Mdom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp b/dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp @@ -451,6 +451,7 @@ MediaResult FFmpegAudioDecoder<LIBAV_VER>::DoDecode(MediaRawData* aSample, packet->data = const_cast<uint8_t*>(aData); packet->size = aSize; + packet->pts = aSample->mTime.ToMicroseconds(); if (aGotFrame) { *aGotFrame = false;