changeset 1755:b9309550c38f libavcodec

segfault fix
author michael
date Fri, 23 Jan 2004 12:30:31 +0000
parents bdf3927bf8c5
children 43a856190778
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");