1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

segfault fix

Originally committed as revision 2719 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-01-23 12:30:31 +00:00
parent 303e50e65b
commit 83f8c0c3c8

View File

@ -820,7 +820,7 @@ static void av_log_default_callback(AVCodecContext* avctx, int level, const char
if(level>av_log_level) if(level>av_log_level)
return; return;
if(avctx && print_prefix) 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"); print_prefix= (int)strstr(fmt, "\n");