The output will be a fragment with zero units, which is a lot more user friendly than making them think something went wrong, as it already happens with cbs_av1.
Unified · Split
| @@ -168,8 +168,8 @@ static int cbs_apv_split_fragment(CodedBitstreamContext *ctx, · 167 unmodified lines | ||
| 168 | 168 | uint32_t signature; |
| 169 | 169 | int err, trace; |
| 170 | 170 | |
| 171 | − if (header) { | |
| 172 | − // Ignore extradata fragments. | |
| 171 | + if (header || !frag->data_size) { | |
| 172 | + // Ignore empty or extradata fragments. | |
| 173 | 173 | return 0; |
| 174 | 174 | } |
| 175 | 175 | |