History

lavc/vvc: Skip enhancement layer NAL units

The native VVC decoder does not yet support quality/spatial/multiview scalability. Bitstreams requiring this feature could cause crashes. Patch fixes this by skipping NAL units which are not in the base layer, warning the user while doing so.

Frank Plowman committed 2 years ago

Commit bb9e4ff1 parent 5b9db321 file · +6 −0Browse files

Unified · Split

libavcodec/vvc/dec.c+6−0
@@ -785,6 +785,12 @@ static int decode_nal_unit(VVCContext *s, VVCFrameContext *fc, const H2645NAL *n · 784 unmodified lines
785785
786786 s->temporal_id = nal->temporal_id;
787787
788+ if (nal->nuh_layer_id > 0) {
789+ avpriv_report_missing_feature(fc->log_ctx,
790+ "Decoding of multilayer bitstreams");
791+ return AVERROR_PATCHWELCOME;
792+ }
793+
788794 switch (unit->type) {
789795 case VVC_VPS_NUT:
790796 case VVC_SPS_NUT:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t