一、背景 一个png图片,文件名为 “%xx{xx.png”这种形式,在ffmpeg的avformat_find_stream_info执行后,没有报错,但是AVFormat对象中没有获取到文件的宽高信息 二、分析 1.用av_log_set_callback设置日志回调,打印出日志信息 static void log_callback_report(void* ptr, int level, const char* fmt, va_list vl) { va_list vl2;