Commit 83f8c0c3 authored by Michael Niedermayer's avatar Michael Niedermayer

segfault fix

Originally committed as revision 2719 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment