summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_av1.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-04 13:58:36 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-08 06:02:05 +0100
commit66d7a211329e79ad61316f67726e89d07c21d862 (patch)
tree11443906bf254d945d2955aec26bcf3040dfd1af /libavcodec/cbs_av1.c
parentf183ae787a73f263706212dde151c1edddd6fb1c (diff)
downloadffmpeg-66d7a211329e79ad61316f67726e89d07c21d862.tar.gz
avcodec/cbs: Make ff_cbs_insert_unit_data() always append the new unit
All split functions (the only users of this function) only append units. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/cbs_av1.c')
-rw-r--r--libavcodec/cbs_av1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index 302e1f38f5..04314443de 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -828,7 +828,7 @@ static int cbs_av1_split_fragment(CodedBitstreamContext *ctx,
goto fail;
}
- err = ff_cbs_insert_unit_data(frag, -1, header.obu_type,
+ err = ff_cbs_append_unit_data(frag, header.obu_type,
data, obu_length, frag->data_ref);
if (err < 0)
goto fail;