Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 8341:fd670708f87f
specific debug output support
author | michael |
---|---|
date | Wed, 04 Dec 2002 12:41:57 +0000 |
parents | a17ce1496ca6 |
children | 03ee1d7deba5 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Wed Dec 04 11:53:47 2002 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Wed Dec 04 12:41:57 2002 +0000 @@ -70,6 +70,7 @@ static int lavc_param_gray=0; static int lavc_param_vstats=0; static int lavc_param_idct_algo=0; +static int lavc_param_debug=0; struct config lavc_decode_opts_conf[]={ {"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, -1, 99, NULL}, @@ -78,6 +79,9 @@ {"idct", &lavc_param_idct_algo, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL}, {"ec", &lavc_param_error_concealment, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL}, {"vstats", &lavc_param_vstats, CONF_TYPE_FLAG, 0, 0, 1, NULL}, +#if LIBAVCODEC_BUILD >= 4642 + {"debug", &lavc_param_debug, CONF_TYPE_INT, CONF_RANGE, 0, 9999999, NULL}, +#endif {NULL, NULL, 0, 0, 0, 0, NULL} }; @@ -164,7 +168,9 @@ avctx->fourcc= sh->format; avctx->idct_algo= lavc_param_idct_algo; avctx->error_concealment= lavc_param_error_concealment; - +#if LIBAVCODEC_BUILD >= 4642 + avctx->debug= lavc_param_debug; +#endif mp_dbg(MSGT_DECVIDEO,MSGL_DBG2,"libavcodec.size: %d x %d\n",avctx->width,avctx->height); /* AVRn stores huffman table in AVI header */ /* Pegasus MJPEG stores it also in AVI header, but it uses the common