summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-27 19:07:51 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-01 01:34:26 +0100
commit4e14a8e6be99c90fabd62b61a5959fb187ddb3a6 (patch)
tree4fe85390753a6dd045ea35edb332c803d7fa7c5f
parentbbeee3339fec92a343f17ef05a7e347fe35c1dbc (diff)
avcodec/libxevd: Set AV_CODEC_CAP_DR1
This decoder uses av_image_copy() to copy decoded images to buffers obtained via ff_get_buffer(); ergo it can handle user-provided buffers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/libxevd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c
index d00c9df091..6ea77077f2 100644
--- a/libavcodec/libxevd.c
+++ b/libavcodec/libxevd.c
@@ -531,7 +531,8 @@ const FFCodec ff_libxevd_decoder = {
.close = libxevd_close,
.priv_data_size = sizeof(XevdContext),
.p.priv_class = &libxevd_class,
- .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_OTHER_THREADS | AV_CODEC_CAP_AVOID_PROBING,
+ .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY |
+ AV_CODEC_CAP_OTHER_THREADS | AV_CODEC_CAP_AVOID_PROBING,
.p.profiles = NULL_IF_CONFIG_SMALL(ff_evc_profiles),
.p.wrapper_name = "libxevd",
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_NOT_INIT_THREADSAFE |