[vlc-devel] [2.2 PATCH] avcodec: fix build before libavcodec 55

Thomas Guillem thomas at gllm.fr
Tue Dec 8 16:46:19 CET 2015


Pointed-by: Hannes Domani <ssbssa at yahoo.de>
---
 modules/codec/avcodec/audio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index 9dc8928..7068499 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -451,7 +451,9 @@ block_t * DecodeAudio ( decoder_t *p_dec, block_t **pp_block )
 end:
     *pp_block = NULL;
 drop:
+#if (LIBAVCODEC_VERSION_MAJOR >= 55)
     av_frame_free(&frame);
+#endif
     if( p_block != NULL )
         block_Release(p_block);
     return NULL;
-- 
2.1.4



More information about the vlc-devel mailing list