1 --- a/libavcodec/wrapped_avframe.c
2 +++ b/libavcodec/wrapped_avframe.c
4 #include "libavutil/buffer.h"
5 #include "libavutil/pixdesc.h"
9 +static const enum AVPixelFormat pix_fmts_all[] = {
12 + AV_PIX_FMT_YUVJ420P,
14 + AV_PIX_FMT_YUVJ422P,
16 + AV_PIX_FMT_YUVJ444P,
17 + AV_PIX_FMT_YUV420P10,
18 + AV_PIX_FMT_YUV422P10,
19 + AV_PIX_FMT_YUV444P10,
20 + AV_PIX_FMT_YUV420P12,
21 + AV_PIX_FMT_YUV422P12,
22 + AV_PIX_FMT_YUV444P12,
23 + AV_PIX_FMT_YUV420P14,
24 + AV_PIX_FMT_YUV422P14,
25 + AV_PIX_FMT_YUV444P14,
26 + AV_PIX_FMT_YUV420P16,
27 + AV_PIX_FMT_YUV422P16,
28 + AV_PIX_FMT_YUV444P16,
39 static void wrapped_avframe_release_buffer(void *unused, uint8_t *data)
41 AVFrame *frame = (AVFrame *)data;
43 .p.id = AV_CODEC_ID_WRAPPED_AVFRAME,
44 .p.capabilities = AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE,
45 FF_CODEC_ENCODE_CB(wrapped_avframe_encode),
46 + .p.pix_fmts = pix_fmts_all,
49 const FFCodec ff_wrapped_avframe_decoder = {