Skip to content

Commit

Permalink
Allow hevc config version to be 0 or 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dexbol committed Dec 23, 2023
1 parent ee19138 commit be6986c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demux/flv-demuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ class FLVDemuxer {
let version = v.getUint8(0); // configurationVersion
let hevcProfile = v.getUint8(1) & 0x1F; // hevcProfileIndication

if (version !== 1 || hevcProfile === 0) {
if (version !== 0 && version !== 1 || hevcProfile === 0) {
this._onError(DemuxErrors.FORMAT_ERROR, 'Flv: Invalid HEVCDecoderConfigurationRecord');
return;
}
Expand Down

0 comments on commit be6986c

Please sign in to comment.