lavf: update AVStream.nb_frames when muxing.