mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-01 15:26:11 +00:00
Check that a sequence header OBU was present in the IDR frame
This commit is contained in:
parent
089b424f65
commit
01b349d8d0
@ -253,6 +253,12 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit);
|
|||||||
|
|
||||||
CodedBitstreamAV1Context* bitstreamCtx = (CodedBitstreamAV1Context*)cbsCtx->priv_data;
|
CodedBitstreamAV1Context* bitstreamCtx = (CodedBitstreamAV1Context*)cbsCtx->priv_data;
|
||||||
AV1RawSequenceHeader* seqHeader = bitstreamCtx->sequence_header;
|
AV1RawSequenceHeader* seqHeader = bitstreamCtx->sequence_header;
|
||||||
|
if (seqHeader == NULL) {
|
||||||
|
Log(LOG_E, @"AV1 sequence header not found in IDR frame!");
|
||||||
|
ff_cbs_fragment_free(&cbsFrag);
|
||||||
|
ff_cbs_close(&cbsCtx);
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
switch (seqHeader->color_config.color_primaries) {
|
switch (seqHeader->color_config.color_primaries) {
|
||||||
case 1: // CP_BT_709
|
case 1: // CP_BT_709
|
||||||
|
Loading…
x
Reference in New Issue
Block a user