Mercurial > libavcodec.hg
diff utils.c @ 1755:b9309550c38f libavcodec
segfault fix
author | michael |
---|---|
date | Fri, 23 Jan 2004 12:30:31 +0000 |
parents | 07a484280a82 |
children | 33f736f68b52 |
line wrap: on
line diff
--- a/utils.c Thu Jan 22 19:48:28 2004 +0000 +++ b/utils.c Fri Jan 23 12:30:31 2004 +0000 @@ -820,7 +820,7 @@ 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");