[vlc-commits] avcodec: fix build before libavcodec 55
Thomas Guillem
git at videolan.org
Tue Dec 8 17:15:37 CET 2015
vlc/vlc-2.2 | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec 8 16:44:54 2015 +0100| [9a316d42c110aa80bf5dff16c443338a7dba700c] | committer: Thomas Guillem
avcodec: fix build before libavcodec 55
Pointed-by: Hannes Domani <ssbssa at yahoo.de>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=9a316d42c110aa80bf5dff16c443338a7dba700c
---
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;
More information about the vlc-commits
mailing list