diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-04 13:58:36 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-08 06:02:05 +0100 |
commit | 66d7a211329e79ad61316f67726e89d07c21d862 (patch) | |
tree | 11443906bf254d945d2955aec26bcf3040dfd1af /libavcodec/cbs_h2645.c | |
parent | f183ae787a73f263706212dde151c1edddd6fb1c (diff) | |
download | ffmpeg-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_h2645.c')
-rw-r--r-- | libavcodec/cbs_h2645.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 3396c059c9..10b3bcc70b 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -493,7 +493,7 @@ static int cbs_h2645_fragment_add_nals(CodedBitstreamContext *ctx, ref = (nal->data == nal->raw_data) ? frag->data_ref : packet->rbsp.rbsp_buffer_ref; - err = ff_cbs_insert_unit_data(frag, -1, nal->type, + err = ff_cbs_append_unit_data(frag, nal->type, (uint8_t*)nal->data, size, ref); if (err < 0) return err; |