# HG changeset patch # User iive # Date 1170851497 0 # Node ID 0cf24df5d97b7d314775cf975f5993451772f12c # Parent 1f6c89bc1c3ac97b23c45135991704a634b32283 Revert part of commit r22170. FFmpeg lavcodecs version is still (or according to ffmpeg commit r7868, it's back to) 49.3.0, so global variables are not yet directly accessable (if ever). diff -r 1f6c89bc1c3a -r 0cf24df5d97b libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Wed Feb 07 09:58:23 2007 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Wed Feb 07 12:31:37 2007 +0000 @@ -231,7 +231,7 @@ avcodec_init(); avcodec_register_all(); avcodec_inited=1; - av_vlog = mp_msp_av_log_callback; + av_log_set_callback(mp_msp_av_log_callback); } ctx = sh->context = malloc(sizeof(vd_ffmpeg_ctx)); @@ -302,7 +302,7 @@ avctx->error_concealment= lavc_param_error_concealment; avctx->debug= lavc_param_debug; if (lavc_param_debug) - av_log_level = AV_LOG_DEBUG; + av_log_set_level(AV_LOG_DEBUG); avctx->debug_mv= lavc_param_vismv; avctx->skip_top = lavc_param_skip_top; avctx->skip_bottom= lavc_param_skip_bottom;