comparison utils.c @ 1755:b9309550c38f libavcodec

segfault fix
author michael
date Fri, 23 Jan 2004 12:30:31 +0000
parents 07a484280a82
children 33f736f68b52
comparison
equal deleted inserted replaced
1754:bdf3927bf8c5 1755:b9309550c38f
818 static int print_prefix=1; 818 static int print_prefix=1;
819 819
820 if(level>av_log_level) 820 if(level>av_log_level)
821 return; 821 return;
822 if(avctx && print_prefix) 822 if(avctx && print_prefix)
823 fprintf(stderr, "[%s @ %p]", avctx->codec->name, avctx); 823 fprintf(stderr, "[%s @ %p]", avctx->codec ? avctx->codec->name : "?", avctx);
824 824
825 print_prefix= (int)strstr(fmt, "\n"); 825 print_prefix= (int)strstr(fmt, "\n");
826 826
827 vfprintf(stderr, fmt, vl); 827 vfprintf(stderr, fmt, vl);
828 } 828 }