1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

cbs_apv: Always restore tracing state on split fragment error

Fixes CID 1646769.
This commit is contained in:
Mark Thompson
2025-05-03 17:04:32 +01:00
parent a9557c1f26
commit 135acc8e61

View File

@ -230,14 +230,14 @@ static int cbs_apv_split_fragment(CodedBitstreamContext *ctx,
err = cbs_apv_read_pbu_header(ctx, &gbc, &pbu_header); err = cbs_apv_read_pbu_header(ctx, &gbc, &pbu_header);
if (err < 0) if (err < 0)
return err; goto fail;
// Could select/skip frames based on type/group_id here. // Could select/skip frames based on type/group_id here.
err = ff_cbs_append_unit_data(frag, pbu_header.pbu_type, err = ff_cbs_append_unit_data(frag, pbu_header.pbu_type,
data, pbu_size, frag->data_ref); data, pbu_size, frag->data_ref);
if (err < 0) if (err < 0)
return err; goto fail;
data += pbu_size; data += pbu_size;
size -= pbu_size; size -= pbu_size;