aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libsvtav1.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-06-18 17:42:21 +0200
committerNiklas Haas <git@haasn.dev>2024-08-16 11:48:02 +0200
commitb3bc8f8e1e58a2ff794158048226fd30969e28c0 (patch)
tree03afac1850e87f104213a64f968171101c1b62d6 /libavcodec/libsvtav1.c
parent1e6fdb89bdcb7d8db6f12dc5322a703a0fc995e2 (diff)
downloadffmpeg-b3bc8f8e1e58a2ff794158048226fd30969e28c0.tar.gz
avcodec/dovi_rpuenc: make encapsulation optional
And move the choice of desired container to `flags`. This is needed to handle differing API requirements (e.g. libx265 requires the NAL RBSP, but CBS BSF requires the unescaped bytes).
Diffstat (limited to 'libavcodec/libsvtav1.c')
-rw-r--r--libavcodec/libsvtav1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index b6db63fd7a..e7b12fb488 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -541,7 +541,8 @@ static int eb_send_frame(AVCodecContext *avctx, const AVFrame *frame)
const AVDOVIMetadata *metadata = (const AVDOVIMetadata *)sd->data;
uint8_t *t35;
int size;
- if ((ret = ff_dovi_rpu_generate(&svt_enc->dovi, metadata, 0, &t35, &size)) < 0)
+ if ((ret = ff_dovi_rpu_generate(&svt_enc->dovi, metadata, FF_DOVI_WRAP_T35,
+ &t35, &size)) < 0)
return ret;
ret = svt_add_metadata(headerPtr, EB_AV1_METADATA_TYPE_ITUT_T35, t35, size);
av_free(t35);