提交 83f8c0c3 编写于 作者: M Michael Niedermayer

segfault fix

Originally committed as revision 2719 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 303e50e6
......@@ -820,7 +820,7 @@ static void av_log_default_callback(AVCodecContext* avctx, int level, const char
if(level>av_log_level)
return;
if(avctx && print_prefix)
fprintf(stderr, "[%s @ %p]", avctx->codec->name, avctx);
fprintf(stderr, "[%s @ %p]", avctx->codec ? avctx->codec->name : "?", avctx);
print_prefix= (int)strstr(fmt, "\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册