avformat/dump: Fix integer overflow in av_dump_format()