--- libquicktime-1.2.4/plugins/ffmpeg/audio.c +++ libquicktime-1.2.4/plugins/ffmpeg/audio.c @@ -467,8 +467,12 @@ if(codec->avctx) { if(codec->initialized) +#if LIBAVCODEC_VERSION_MAJOR >= 62 + avcodec_free_context(&codec->avctx); +#else avcodec_close(codec->avctx); - av_free(codec->avctx); + av_free(codec->avctx); +#endif } if(codec->sample_buffer) free(codec->sample_buffer); --- libquicktime-1.2.4/plugins/ffmpeg/video.c +++ libquicktime-1.2.4/plugins/ffmpeg/video.c @@ -241,9 +241,13 @@ { if(codec->avctx->stats_in) av_free(codec->avctx->stats_in); +#if LIBAVCODEC_VERSION_MAJOR >= 62 + avcodec_free_context(&codec->avctx); +#else avcodec_close(codec->avctx); + av_free(codec->avctx); +#endif } - av_free(codec->avctx); if(codec->frame_buffer) free(codec->frame_buffer); if(codec->buffer) free(codec->buffer);