summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-01-23 12:30:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-01-23 12:30:31 +0000
commit83f8c0c3c83b8739187c226fea5e59a07e08a7b6 (patch)
treec52f6fa0a578fe58f4f2eed75b5fc5fb4f564e63 /libavcodec
parent303e50e65b8b9dc66ef9929a5a638a16378da64c (diff)
segfault fix
Originally committed as revision 2719 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 7f6b56f98a..2fb82c347a 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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");