mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-20 15:28:04 +00:00
Check that a sequence header OBU was present in the IDR frame
This commit is contained in:
1 parent
089b424f65
commit
01b349d8d0
1 file changed
+6
@@ -253,6 +253,12 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit);
|
||||
|
||||
CodedBitstreamAV1Context* bitstreamCtx = (CodedBitstreamAV1Context*)cbsCtx->priv_data;
|
||||
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) {
|
||||
case 1: // CP_BT_709
|
||||
|
||||
Reference in new issue
Block a user