зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1194612: P1. Dont reject init promise when initialising H264Converter. r=alfredo
A decoder isn't created until a SPS and PPS NALs have been detected in the stream. The decoder will be initialised instead lazily later during the input process.
This commit is contained in:
Родитель
486cee1a15
Коммит
b619f8c2e7
|
@ -46,8 +46,9 @@ H264Converter::Init()
|
|||
return mDecoder->Init();
|
||||
}
|
||||
|
||||
return MediaDataDecoder::InitPromise::CreateAndReject(
|
||||
MediaDataDecoder::DecoderFailureReason::INIT_ERROR, __func__);
|
||||
// We haven't been able to initialize a decoder due to a missing SPS/PPS.
|
||||
return MediaDataDecoder::InitPromise::CreateAndResolve(
|
||||
TrackType::kVideoTrack, __func__);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче