Description: Fix FTBFS with libav9, by adding libavutil/mem.h header. This
 define av_mallocz thet is required.
Author: Fabrice Coutadeur <fabricesp@ubuntu.com>
--- a/src/dxr3/ffmpeg_encoder.c
+++ b/src/dxr3/ffmpeg_encoder.c
@@ -44,6 +44,7 @@
 #  include <libavcodec/avcodec.h>
 #endif
 
+#include <libavutil/mem.h>
 #include "../combined/ffmpeg/ffmpeg_compat.h"
 
 /* buffer size for encoded mpeg1 stream; will hold one intra frame
--- a/src/combined/ffmpeg/ff_audio_decoder.c
+++ b/src/combined/ffmpeg/ff_audio_decoder.c
@@ -43,6 +43,7 @@
 #include "bswap.h"
 #include "ffmpeg_decoder.h"
 #include "ffmpeg_compat.h"
+#include <libavutil/mem.h>
 
 #define AUDIOBUFSIZE (64 * 1024)
 
--- a/src/combined/ffmpeg/ff_video_decoder.c
+++ b/src/combined/ffmpeg/ff_video_decoder.c
@@ -50,6 +50,7 @@
 #  include <libpostproc/postprocess.h>
 #endif
 
+#include <libavutil/mem.h>
 #include "ffmpeg_compat.h"
 
 #define VIDEOBUFSIZE        (128*1024)
@@ -258,13 +259,6 @@
   av_frame->linesize[1] = img->pitches[1];
   av_frame->linesize[2] = img->pitches[2];
 
-  /* We should really keep track of the ages of xine frames (see
-   * avcodec_default_get_buffer in libavcodec/utils.c)
-   * For the moment tell ffmpeg that every frame is new (age = bignumber) */
-#ifdef AVFRAMEAGE
-  av_frame->age = 256*256*256*64;
-#endif
-
   av_frame->type= FF_BUFFER_TYPE_USER;
 
   /* take over pts for this frame to have it reordered */
