cbs_apv: Always restore tracing state on split fragment error
Fixes CID 1646769.
This commit is contained in:
parent
a9557c1f26
commit
135acc8e61
1 changed files with 2 additions and 2 deletions
|
|
@ -230,14 +230,14 @@ static int cbs_apv_split_fragment(CodedBitstreamContext *ctx,
|
|||
|
||||
err = cbs_apv_read_pbu_header(ctx, &gbc, &pbu_header);
|
||||
if (err < 0)
|
||||
return err;
|
||||
goto fail;
|
||||
|
||||
// Could select/skip frames based on type/group_id here.
|
||||
|
||||
err = ff_cbs_append_unit_data(frag, pbu_header.pbu_type,
|
||||
data, pbu_size, frag->data_ref);
|
||||
if (err < 0)
|
||||
return err;
|
||||
goto fail;
|
||||
|
||||
data += pbu_size;
|
||||
size -= pbu_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue