From 48a994166b19887677633bd42f5a8764711495a0 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Wed, 30 Nov 2016 17:24:45 +1100 Subject: [PATCH] Bug 1320705: P2. Add mDiscardPadding information. r=kinetik The WebMDemuxer added this information in the ExtraData field. However, this is incompatible with the MSE demuxer which will override the ExtraData field under some circumstances. It's cleaner to have a dedicated field anyway. MozReview-Commit-ID: GadD11zzZ8f --HG-- extra : rebase_source : 9b9018bc791b224414ef223464f8d66f63ccc817 --- dom/media/MediaData.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/media/MediaData.h b/dom/media/MediaData.h index 117355fea732..348220949d9b 100644 --- a/dom/media/MediaData.h +++ b/dom/media/MediaData.h @@ -642,6 +642,10 @@ public: // Indicates that this is the last packet of the stream. bool mEOS = false; + // Indicate to the audio decoder that mDiscardPadding frames should be + // trimmed. + uint32_t mDiscardPadding = 0; + RefPtr mTrackInfo; // Return a deep copy or nullptr if out of memory.