lavf: Avoid using av_malloc(0) in av_dump_format