зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1374774: P3. Remove HasSPS method. r=gerald
It was only used in one spot, and incorrectly at that. MozReview-Commit-ID: EWkkrAlYT7W --HG-- extra : rebase_source : 9c719bbf668eafaac0415580ffdfa0cea0942673
This commit is contained in:
Родитель
da6d087d1b
Коммит
bcd57adc64
|
@ -520,7 +520,7 @@ MP4TrackDemuxer::GetSamples(int32_t aNumSamples)
|
|||
}
|
||||
for (const auto& sample : samples->mSamples) {
|
||||
// Collect telemetry from h264 Annex B SPS.
|
||||
if (mNeedSPSForTelemetry && mp4_demuxer::H264::HasSPS(sample)) {
|
||||
if (mNeedSPSForTelemetry && mp4_demuxer::H264::HasSPS(sample->mExtraData)) {
|
||||
RefPtr<MediaByteBuffer> extradata =
|
||||
mp4_demuxer::H264::ExtractExtraData(sample);
|
||||
mNeedSPSForTelemetry = AccumulateSPSTelemetry(extradata);
|
||||
|
|
|
@ -783,12 +783,6 @@ H264::ExtractExtraData(const mozilla::MediaRawData* aSample)
|
|||
return extradata.forget();
|
||||
}
|
||||
|
||||
/* static */ bool
|
||||
H264::HasSPS(const mozilla::MediaRawData* aSample)
|
||||
{
|
||||
return HasSPS(aSample->mExtraData);
|
||||
}
|
||||
|
||||
/* static */ bool
|
||||
H264::HasSPS(const mozilla::MediaByteBuffer* aExtraData)
|
||||
{
|
||||
|
|
|
@ -414,7 +414,6 @@ public:
|
|||
const mozilla::MediaByteBuffer* aNAL);
|
||||
|
||||
/* Check if out of band extradata contains a SPS NAL */
|
||||
static bool HasSPS(const mozilla::MediaRawData* aSample);
|
||||
static bool HasSPS(const mozilla::MediaByteBuffer* aExtraData);
|
||||
// Extract SPS and PPS NALs from aSample by looking into each NALs.
|
||||
// aSample must be in AVCC format.
|
||||
|
|
Загрузка…
Ссылка в новой задаче