mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-16 21:00:00 +01:00
issue #34
This commit is contained in:
@@ -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)
|
#if (LIBAVCODEC_VERSION_MAJOR > 55 && LIBAVCODEC_VERSION_MINOR > 40) || (LIBAVCODEC_VERSION_MAJOR == 56 && LIBAVCODEC_VERSION_MINOR > 0)
|
||||||
avcodec_free_context( avctx );
|
avcodec_free_context( avctx );
|
||||||
#else
|
|
||||||
//@ libav
|
|
||||||
#if (LIBAVCODEC_VERSION_MAJOR == 56 && LIBAVCODEC_VERSION_MICRO == 0)
|
|
||||||
// if( avctx )
|
|
||||||
// av_free( avctx );
|
|
||||||
#else
|
#else
|
||||||
if( avctx )
|
if( avctx )
|
||||||
free(avctx);
|
free(avctx);
|
||||||
avctx = NULL;
|
avctx = NULL;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void avhelper_close_input_file( AVFormatContext *s ) {
|
static void avhelper_close_input_file( AVFormatContext *s ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user