зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1313398: P2. Always check for SPS/PPS inband. r=gerald
Ignore the known out of band extradata. MozReview-Commit-ID: 8ARjrTtxhwY --HG-- extra : rebase_source : 16d8d3ca9eb4663ec94ec804c290ea0409fbeea4
This commit is contained in:
Родитель
72d70a10d9
Коммит
097f5acf02
|
@ -277,11 +277,6 @@ AnnexB::ExtractExtraData(const mozilla::MediaRawData* aSample)
|
|||
MOZ_ASSERT(IsAVCC(aSample));
|
||||
|
||||
RefPtr<mozilla::MediaByteBuffer> extradata = new mozilla::MediaByteBuffer;
|
||||
if (HasSPS(aSample->mExtraData)) {
|
||||
// We already have an explicit extradata, re-use it.
|
||||
extradata = aSample->mExtraData;
|
||||
return extradata.forget();
|
||||
}
|
||||
|
||||
// SPS content
|
||||
mozilla::Vector<uint8_t> sps;
|
||||
|
|
|
@ -29,9 +29,8 @@ public:
|
|||
// Parse an AVCC extradata and construct the Annex B sample header.
|
||||
static already_AddRefed<mozilla::MediaByteBuffer> ConvertExtraDataToAnnexB(
|
||||
const mozilla::MediaByteBuffer* aExtraData);
|
||||
// Extract SPS and PPS NALs from aSample, aSample must be in AVCC format.
|
||||
// If aSample already contains an extradata with an SPS, it will be returned
|
||||
// otherwise the SPS/PPS NALs are searched in-band.
|
||||
// Extract SPS and PPS NALs from aSample by looking into each NALs.
|
||||
// aSample must be in AVCC format.
|
||||
static already_AddRefed<mozilla::MediaByteBuffer> ExtractExtraData(
|
||||
const mozilla::MediaRawData* aSample);
|
||||
static bool HasSPS(const mozilla::MediaRawData* aSample);
|
||||
|
|
Загрузка…
Ссылка в новой задаче