[MPlayer-cvslog] r38383 - trunk/libmpcodecs/ad_ffmpeg.c

reimar subversion at mplayerhq.hu
Fri Aug 26 17:27:58 EEST 2022


Author: reimar
Date: Fri Aug 26 17:27:58 2022
New Revision: 38383

Log:
ad_ffmpeg.c: Fix missing padding for extradata for QDM2.

Modified:
   trunk/libmpcodecs/ad_ffmpeg.c

Modified: trunk/libmpcodecs/ad_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/ad_ffmpeg.c	Fri Aug 26 17:09:03 2022	(r38382)
+++ trunk/libmpcodecs/ad_ffmpeg.c	Fri Aug 26 17:27:58 2022	(r38383)
@@ -143,7 +143,7 @@ static int init(sh_audio_t *sh_audio)
     // for QDM2
     if (sh_audio->codecdata_len && sh_audio->codecdata && !lavc_context->extradata)
     {
-        lavc_context->extradata = av_malloc(sh_audio->codecdata_len);
+        lavc_context->extradata = av_malloc(sh_audio->codecdata_len + AV_INPUT_BUFFER_PADDING_SIZE);
         lavc_context->extradata_size = sh_audio->codecdata_len;
         memcpy(lavc_context->extradata, (char *)sh_audio->codecdata,
                lavc_context->extradata_size);


More information about the MPlayer-cvslog mailing list