demux_lavf: get updated metadata from a packet if available