demux_lavf: support new metadata update API

This Libav-invented API is of course completely different from the
FFmpeg-one. (The fun part is that I approved of both.)