This commit is contained in:
niels
2015-11-07 21:39:02 +01:00
parent bf62dc742d
commit 80b656407a

View File

@@ -157,17 +157,11 @@ void avhelper_free_context(AVCodecContext **avctx)
{
#if (LIBAVCODEC_VERSION_MAJOR > 55 && LIBAVCODEC_VERSION_MINOR > 40) || (LIBAVCODEC_VERSION_MAJOR == 56 && LIBAVCODEC_VERSION_MINOR > 0)
avcodec_free_context( avctx );
#else
//@ libav
#if (LIBAVCODEC_VERSION_MAJOR == 56 && LIBAVCODEC_VERSION_MICRO == 0)
// if( avctx )
// av_free( avctx );
#else
if( avctx )
free(avctx);
avctx = NULL;
#endif
#endif
}
static void avhelper_close_input_file( AVFormatContext *s ) {