diff options
author | Andreas Rheinhardt <andreas.rheinhardt@googlemail.com> | 2018-11-28 03:24:09 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2019-01-24 01:33:43 +0300 |
commit | 992532ee3122d7938a7581988eea401b57de8189 (patch) | |
tree | 2f7386fde20a32210a00fbdcf96f88caa5a9e6e1 /libavcodec/hevcdec.c | |
parent | cf81284b1c14ef28d3f94e6d28c46188ba4e82f2 (diff) |
h2645_parse: Make ff_h2645_packet_split reference-compatible
This is in preparation for a patch for cbs_h2645. Now the packet's
rbsp_buffer can be owned by an AVBuffer.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Diffstat (limited to 'libavcodec/hevcdec.c')
-rw-r--r-- | libavcodec/hevcdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 10bf2563c0..b2a87d55db 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -3026,7 +3026,7 @@ static int decode_nal_units(HEVCContext *s, const uint8_t *buf, int length) /* split the input packet into NAL units, so we know the upper bound on the * number of slices in the frame */ ret = ff_h2645_packet_split(&s->pkt, buf, length, s->avctx, s->is_nalff, - s->nal_length_size, s->avctx->codec_id, 1); + s->nal_length_size, s->avctx->codec_id, 1, 0); if (ret < 0) { av_log(s->avctx, AV_LOG_ERROR, "Error splitting the input into NAL units.\n"); |