summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264dec.c
diff options
context:
space:
mode:
authorJames Almer <[email protected]>2024-08-17 23:52:23 -0300
committerJames Almer <[email protected]>2024-08-19 20:23:20 -0300
commita754ee08440998830c4a61cf32b2570e29e9ce75 (patch)
treee307ba2b25389e822cc3bea2d1255f3975cfd06c /libavcodec/h264dec.c
parent80606442377a7bca9501e2612e9a44b5044316ca (diff)
avcodec/h2645_parse: replace three bool arguments in ff_h2645_packet_split with a single flags one
Signed-off-by: James Almer <[email protected]>
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r--libavcodec/h264dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index c77d8f42db..0154fe17b6 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -612,8 +612,8 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size)
h->is_avc = 1;
}
- ret = ff_h2645_packet_split(&h->pkt, buf, buf_size, avctx, h->is_avc, h->nal_length_size,
- avctx->codec_id, 0, 0);
+ ret = ff_h2645_packet_split(&h->pkt, buf, buf_size, avctx, h->nal_length_size,
+ avctx->codec_id, !!h->is_avc * H2645_FLAG_IS_NALFF);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR,
"Error splitting the input into NAL units.\n");