alternative shortcuts; cd cinelerra-5.1; patch -p1 -i alt_shortcuts.patch
[goodguy/cinelerra.git] / cinelerra-5.1 / thirdparty / src / ffmpeg-5.1.patchZ1
1 --- a/libavcodec/wrapped_avframe.c
2 +++ b/libavcodec/wrapped_avframe.c
3 @@ -33,6 +33,38 @@
4  #include "libavutil/buffer.h"
5  #include "libavutil/pixdesc.h"
6  
7 +
8 +
9 +static const enum AVPixelFormat pix_fmts_all[] = {
10 +    AV_PIX_FMT_YUV411P,
11 +    AV_PIX_FMT_YUV420P,
12 +    AV_PIX_FMT_YUVJ420P,
13 +    AV_PIX_FMT_YUV422P,
14 +    AV_PIX_FMT_YUVJ422P,
15 +    AV_PIX_FMT_YUV444P,
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,
29 +    AV_PIX_FMT_GRAY8,
30 +    AV_PIX_FMT_GRAY9,
31 +    AV_PIX_FMT_GRAY10,
32 +    AV_PIX_FMT_GRAY12,
33 +    AV_PIX_FMT_GRAY16,
34 +    AV_PIX_FMT_NONE
35 +};
36 +
37 +
38 +
39  static void wrapped_avframe_release_buffer(void *unused, uint8_t *data)
40  {
41      AVFrame *frame = (AVFrame *)data;
42 @@ -109,6 +141,7 @@
43      .p.id           = AV_CODEC_ID_WRAPPED_AVFRAME,
44      FF_CODEC_ENCODE_CB(wrapped_avframe_encode),
45      .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
46 +    .p.pix_fmts       = pix_fmts_all,
47  };
48  
49  const FFCodec ff_wrapped_avframe_decoder = {
50 @@ -118,4 +151,5 @@
51      .p.id           = AV_CODEC_ID_WRAPPED_AVFRAME,
52      FF_CODEC_DECODE_CB(wrapped_avframe_decode),
53      .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
54 +    
55  };