diff mbox series

[FFmpeg-devel,7/7] avcodec/xfacedec: Add AV_CODEC_CAP_DR1

Message ID AS8PR01MB79440431EDDCF828EBAC0BD98FF99@AS8PR01MB7944.eurprd01.prod.exchangelabs.com
State Accepted
Commit 56a062f53cc020e271674c16650604f53f79ea2c
Headers show
Series [FFmpeg-devel,1/7] avcodec/pgxdec: Make better use of size check | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_aarch64_jetson success Make finished
andriy/make_fate_aarch64_jetson success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished

Commit Message

Andreas Rheinhardt April 24, 2022, 4:42 a.m. UTC
This decoder uses ff_get_buffer() and does nothing weird
(it does not even rely on any alignment of the frame's data/linesize).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/xfacedec.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Paul B Mahol April 24, 2022, 11:12 a.m. UTC | #1
lgtm
diff mbox series

Patch

diff --git a/libavcodec/xfacedec.c b/libavcodec/xfacedec.c
index b103b5beda..f15bc2d773 100644
--- a/libavcodec/xfacedec.c
+++ b/libavcodec/xfacedec.c
@@ -180,6 +180,7 @@  const FFCodec ff_xface_decoder = {
     .p.long_name    = NULL_IF_CONFIG_SMALL("X-face image"),
     .p.type         = AVMEDIA_TYPE_VIDEO,
     .p.id           = AV_CODEC_ID_XFACE,
+    .p.capabilities = AV_CODEC_CAP_DR1,
     .priv_data_size = sizeof(XFaceContext),
     .init           = xface_decode_init,
     FF_CODEC_DECODE_CB(xface_decode_frame),