]> git.pld-linux.org Git - packages/freerdp2.git/blob - ffmpeg5.patch
build fixes for ffmpeg5
[packages/freerdp2.git] / ffmpeg5.patch
1 --- freerdp-2.5.0/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c.orig        2022-01-12 10:55:33.000000000 +0100
2 +++ freerdp-2.5.0/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c     2022-01-24 13:55:06.447554471 +0100
3 @@ -615,7 +615,9 @@
4  static INIT_ONCE g_Initialized = INIT_ONCE_STATIC_INIT;
5  static BOOL CALLBACK InitializeAvCodecs(PINIT_ONCE once, PVOID param, PVOID* context)
6  {
7 +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 137, 100)
8         avcodec_register_all();
9 +#endif
10         return TRUE;
11  }
12  
13 --- freerdp-2.5.0/libfreerdp/codec/dsp_ffmpeg.c.orig    2022-01-24 14:27:49.787885307 +0100
14 +++ freerdp-2.5.0/libfreerdp/codec/dsp_ffmpeg.c 2022-01-24 14:28:58.954285682 +0100
15 @@ -571,7 +571,9 @@
16  FREERDP_DSP_CONTEXT* freerdp_dsp_ffmpeg_context_new(BOOL encode)
17  {
18         FREERDP_DSP_CONTEXT* context;
19 +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 137, 100)
20         avcodec_register_all();
21 +#endif
22         context = calloc(1, sizeof(FREERDP_DSP_CONTEXT));
23  
24         if (!context)
This page took 0.030111 seconds and 3 git commands to generate.