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.
Unified · Split
| @@ -785,6 +785,12 @@ static int decode_nal_unit(VVCContext *s, VVCFrameContext *fc, const H2645NAL *n · 784 unmodified lines | ||
| 785 | 785 | |
| 786 | 786 | s->temporal_id = nal->temporal_id; |
| 787 | 787 | |
| 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 | + | |
| 788 | 794 | switch (unit->type) { |
| 789 | 795 | case VVC_VPS_NUT: |
| 790 | 796 | case VVC_SPS_NUT: |