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 | uint32_t signature; | 168 | uint32_t signature; |
| 169 | int err, trace; | 169 | int err, trace; |
| 170 | 170 | ||
| 171 | if (header) { | 171 | if (header || !frag->data_size) { |
| 172 | // Ignore extradata fragments. | 172 | // Ignore empty or extradata fragments. |
| 173 | return 0; | 173 | return 0; |
| 174 | } | 174 | } |
| 175 | 175 | ||