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:
parent
303e50e65b
commit
83f8c0c3c8
@ -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");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user