Description: Fix build against newer FFmpeg5
 in order to use LIBAVCODEC_VERSION_INT we must include libavcodec/version.h
 there are also some deprecation warning, which i got rid of
Author: IOhannes m zmölnig
Bug: https://github.com/bplaum/gmerlin-avdecoder/issues/7
Last-Update: 2024-01-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- gmerlin-avdecoder.orig/lib/demux_ffmpeg.c
+++ gmerlin-avdecoder/lib/demux_ffmpeg.c
@@ -82,7 +82,7 @@
 
 typedef struct
   {
-  ff_const59 AVInputFormat *avif;
+  const AVInputFormat *avif;
   AVFormatContext *avfc;
 #ifdef NEW_IO_API
 #define BUFFER_SIZE 1024 * 4
@@ -172,7 +172,7 @@
 
 /* Demuxer functions */
 
-static ff_const59 AVInputFormat * get_format(bgav_input_context_t * input)
+static const AVInputFormat * get_format(bgav_input_context_t * input)
   {
   uint8_t data[PROBE_SIZE];
   AVProbeData avpd;
