diff options
author | James Almer <[email protected]> | 2024-08-17 23:52:23 -0300 |
---|---|---|
committer | James Almer <[email protected]> | 2024-08-19 20:23:20 -0300 |
commit | a754ee08440998830c4a61cf32b2570e29e9ce75 (patch) | |
tree | e307ba2b25389e822cc3bea2d1255f3975cfd06c /libavcodec/hevc/parser.c | |
parent | 80606442377a7bca9501e2612e9a44b5044316ca (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/hevc/parser.c')
-rw-r--r-- | libavcodec/hevc/parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/hevc/parser.c b/libavcodec/hevc/parser.c index f4e6e3c36d..8db56e259e 100644 --- a/libavcodec/hevc/parser.c +++ b/libavcodec/hevc/parser.c @@ -182,6 +182,7 @@ static int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf, HEVCParserContext *ctx = s->priv_data; HEVCParamSets *ps = &ctx->ps; HEVCSEI *sei = &ctx->sei; + int flags = (H2645_FLAG_IS_NALFF * !!ctx->is_avc) | H2645_FLAG_SMALL_PADDING; int ret, i; /* set some sane default values */ @@ -191,8 +192,8 @@ static int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf, ff_hevc_reset_sei(sei); - ret = ff_h2645_packet_split(&ctx->pkt, buf, buf_size, avctx, ctx->is_avc, - ctx->nal_length_size, AV_CODEC_ID_HEVC, 1, 0); + ret = ff_h2645_packet_split(&ctx->pkt, buf, buf_size, avctx, + ctx->nal_length_size, AV_CODEC_ID_HEVC, flags); if (ret < 0) return ret; |