avformat/mpegenc: assert that premux_packet is non null